<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="power by" content="http://www.whynto.com" />
    {{--<title>@yield('title')</title>--}}
    <title>公安内保综合业务信息管理平台</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="stylesheet" type="text/css" href="{{ URL::asset('/') }}bootstrap/css/bootstrap.css">
    <link rel="stylesheet" type="text/css" href="{{ URL::asset('/') }}css/style.css">
    <link rel="stylesheet" href="{{ URL::asset('/') }}font-awesome/css/font-awesome.css">
    <link rel="stylesheet" href="{{ URL::asset('/') }}css/jquery.treeview.css" />
    <link rel="stylesheet" type="text/css" href="{{ URL::asset('/') }}css/stylesheets/theme.css">
    <link rel="stylesheet" type="text/css" href="{{ URL::asset('/') }}css/stylesheets/premium.css">
    <link rel="stylesheet" type="text/css" href="{{ URL::asset('/') }}css/stylesheets/basic2.css"/>
    <link rel="stylesheet" type="text/css" href="{{ URL::asset('/') }}css/stylesheets/dw_table.css"/>
    <link rel="stylesheet" href="{{ URL::asset('/') }}css/default/easyui.css" type="text/css">
    <link rel="stylesheet" href="{{ URL::asset('/') }}css/icon.css" type="text/css">
    <script src="{{ URL::asset('/') }}js/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="{{ URL::asset('/') }}js/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="{{ URL::asset('/') }}js/easyui-lang-zh_CN.js"></script>
    <script src="{{ URL::asset('/') }}js/jquery.cookie.js"></script>
    <script src="{{ URL::asset('/') }}js/jquery.treeview.js"></script>
    <script src="{{ URL::asset('/') }}js/easyui.validator.js"></script>
    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="{{ URL::asset('/') }}js/html5.js"></script>
    <script src="{{ URL::asset('/') }}js/respond.min.js"></script>
    <![endif]-->

    <!--[if lt IE 7 ]> <body class="ie ie6"> <![endif]-->
    <!--[if IE 7 ]> <body class="ie ie7 "> <![endif]-->
    <!--[if IE 8 ]> <body class="ie ie8 "> <![endif]-->
    <!--[if IE 9 ]> <body class="ie ie9 "> <![endif]-->
    <!--[if (gt IE 9)|!(IE)]><!-->

    <!--<![endif]-->
</head>
<body class="theme-blue easyui-layout">
<!--顶部-->
<style type="text/css">
    #line-chart {
        height:300px;
        width:800px;
        margin: 0px auto;
        margin-top: 1em;
    }
    .navbar-default .navbar-brand, .navbar-default .navbar-brand:hover { 
        color: #fff;
    }
    
	.inner_nav {
	width: 100%;
	}
	.inner_nav ul {
		width: 100%;
		height: 24px;
		border-bottom: 4px solid #1466b9;
	}
	.inner_nav ul li {
		height: 24px;
		float: left;
		padding: 0 12px;
		margin: 0 22px;
	}	
	.inner_nav ul li a {
		color:#333;
		font-size: 24px;
		display: block;
	}
	

</style>

<script type="text/javascript">
    $(function() {
        var uls = $('.sidebar-nav > ul > *').clone();
        uls.addClass('visible-xs');
        $('#main-menu').append(uls.clone());
    });
</script>
<div class="" data-options="region:'north',border:false">
	<div class="navbar navbar-default navbar2 navbars" role="navigation">
	    <div class="navbar-header">
	      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse">
	        <span class="sr-only">Toggle navigation</span>
	        <span class="icon-bar"></span>
	        <span class="icon-bar"></span>
	        <span class="icon-bar"></span>
	      </button>
	     <a href="#" class="navbar-top"><span class="navbar-brand  navbar-brand1"></span><span class="navbar-brand2">
	     	<strong>@if(auth::user()->role_id != 22)公安内保综合信息管理平台@else内保单位综合信息平台@endif</strong>
	        </span>
	      </a>
	    </div>
	
		<div class="navbar-collapse collapse" style="height: 1px;">
			<ul id="main-menu" class="nav navbar-nav navbar-right">
				{{--<li id="msg">
					<a href="javascript:">
						<span class="badge badge-danger">{{$wdxx_num}}</span>
						<i class="fa fa-envelope" style="font-size:18px"></i>
					</a>
				</li>--}}
				<li>
					<a href="javascript:" class="dropdown-toggle" >
						<span class="glyphicon glyphicon-user padding-right-small" style="position:relative;top: 1px;"></span>您好,<span>{{ Auth::user()->name }}&nbsp;&nbsp;@if(Auth::user()->role_id != '')所在权限组：{{getValue(Auth::user()->role_id,'roles','id','name')}}@endif</span>
					</a>
				</li>
				{{--<li><a href="{{ URL('/basic') }}" class="dropdown-toggle" ><span class="glyphicon glyphicon-cog" style="position:relative;top: 2px;right: 2px;"></span>网站设置</a></li>--}}
				<li><a tabindex="-1" style="color: #fff" href="{{ route('logout') }}" class="btn btn-danger btn-pad " onclick="event.preventDefault();document.getElementById('logout-form').submit();">退出</a></li>
				<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
					{{ csrf_field() }}
				</form>
			</ul>
		</div>
	</div>
</div>
<script>
	$(function () {
		$(".nav_erji").each(function () {
			$(this).children('li').mouseover(function(){
				$(this).addClass('open');
			})
			$(this).children('li').mouseleave(function(){
				$(this).removeClass('open');
			})
		})
	})
</script>
<div data-options="region:'center',iconCls:'icon-ok'">
    @yield('content')
</div>
<div data-options="region:'south',border:false" >
	<footer style="text-align: center">
    @if(auth::user()->role_id != 22)
        <p>Copyright ©2017 All Rights Reserved 公安内保综合信息管理平台 </p>
    @else
        <p>Copyright ©2017 All Rights Reserved 内保单位综合信息平台 </p>
    @endif

</footer>
</div>


<script>
    $(function(){

        $("#diqu").treeview();

        $("#browser").treeview({
            collapsed: true,
            control: "#treecontrol",
            persist: "location",
            cookieId: "filetree"
        });
    })
 

</script>

<script>
  // 左边菜单处理 城市
  function load_city_data($id){
    try{
      if(load_city_data_from_menu&&typeof(load_city_data_from_menu)=="function"){
        load_city_data_from_menu($id);
      }else{
        //alert("无数据");
      }
    }catch(e){
      //window.location.href = window.origin + "/admin/units/index?city=" + $id;
      window.location.href = window.origin + "/admin/index?id=" + $id;
    }
  }

  // 左边菜单处理 区域
  function load_area_data($id){
    try{
      if(load_area_data_from_menu&&typeof(load_area_data_from_menu)=="function"){
        load_area_data_from_menu($id);
      }else{
        //alert("首页11");
      }
    }catch(e){
      //window.location.href = window.origin + "/admin/units/index?area=" + $id;
      window.location.href = window.origin + "/admin/index?id=" + $id;
    }
  }

  // 左边菜单处理 下棋
  function load_org_data($id){
    try{
      if(load_org_data_from_menu&&typeof(load_org_data_from_menu)=="function"){
        load_org_data_from_menu($id);
      }else{
        //alert("首页111");
      }
    }catch(e){
      //window.location.href = window.origin + "/admin/units/index?org=" + $id;
      window.location.href = window.origin + "/admin/index?id=" + $id;
    }
  }
  $(".nav_erji >li").mouseover(function(){
			$(".dropdown-menu").css("position","fixed")
			console.log($(this).offset().left)
			var Left = $(this).offset().left
			var Top = $(this).offset().top
			$(".dropdown-menu").css({"left":Left+"px","top":Top+40+"px"});
 })
</script>

</body>
</html>
